package com.sandu.user.fragment

import android.os.Bundle
import com.alibaba.android.arouter.facade.annotation.Route
import com.blankj.utilcode.util.ToastUtils
import com.sandu.lib_common.arouter.ARouterPath
import com.sandu.lib_common.base.BaseDBFragment
import com.sandu.lib_mvvm.ext.nav
import com.sandu.lib_mvvm.ext.navigateAction
import com.sandu.user.R
import com.sandu.user.databinding.MineAddressFragmentBinding
import com.sandu.user.viewmodel.state.MineViewModel

@Route(path = ARouterPath.MINE_ADDRESS)
class MineAddressFragment : BaseDBFragment<MineViewModel, MineAddressFragmentBinding>() {
    override fun initView(savedInstanceState: Bundle?) {
        mDatabind.click = ProxyClick()
    }

    inner class ProxyClick {
        fun clickProfile() {
            ToastUtils.showLong("clickAddress")
            nav().navigateAction(
                R.id.action_address_to_profile,
                Bundle().apply { putInt("id", 111) })
        }

    }
}